import { createApp } from "vue"
import { createPinia } from "pinia"
import piniaPersist from "pinia-plugin-persist"

import App from "./App.vue"
import router from "./router"
import "virtual:svg-icons-register"
import SvgIcon from "@/components/SvgIcon/index.vue"

import "./styles/main.scss"
import "element-plus/dist/index.css"

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPersist)
app.component("svg-icon", SvgIcon).use(pinia).use(router).mount("#app")
